<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>数据字典分类信息</title>
    
	<link rel="stylesheet" type="text/css" href="css/commonStyle.css">
	
  </head>
  
  <body>
    <form action="DDInfo_update.action" method="post">
    <s:hidden name="ddCategoryId" value="%{ddCategoryId}" />
    <center>
    	<table>
    		<thead>
    			<tr>
    				<td class="theadNoTitleInput" colspan="3"><span class="headStyle">录入<s:property value="ddCategory.name"/></span></td>
    			</tr>
    			<tr>
    				<td>序号</td>
    				<td>启用</td>
    				<td>选项内容</td>
    			</tr>
    		</thead>
    		<tbody>
    			<s:iterator value="ddInfoes" var="ddInfo">
    				<tr>
    					<td><s:property value="%{#ddInfo.id % 10 != 0?#ddInfo.id % 10 : 10}" /></td>
    					<s:hidden name="ddInfoIds" value='%{#ddInfo.id}' />
    					<td><input type="checkbox" value='<s:property value="#ddInfo.id" />' name="ddInfoVars" 
    						 <s:if test="#ddInfo.variable == 'yes'">checked="checked"</s:if> /></td>
    					<td><input type="text" name="ddInfoNames" value='<s:property value="#ddInfo.name" />' /></td>
    				</tr>
    			</s:iterator>
    		</tbody>
    		<tfoot>
    			<tr>
    				<td colspan="3"><input type="submit" value="提交" /></td>
    			</tr>
    		</tfoot>
    	</table>
   	</center>
    </form>
  </body>
</html>
